package com.nk.system.filter;

public class SingleLogin {
	private Integer randomSession;
	private String ipSession;
	public Integer getRandomSession() {
		return randomSession;
	}
	public void setRandomSession(Integer randomSession) {
		this.randomSession = randomSession;
	}
	public String getIpSession() {
		return ipSession;
	}
	public void setIpSession(String ipSession) {
		this.ipSession = ipSession;
	}

	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		if(obj instanceof SingleLogin){
			SingleLogin singleLogin = (SingleLogin)obj;
			if(singleLogin.getRandomSession() == randomSession && singleLogin.getIpSession().equals(ipSession)){
				return true;
			}
		}
		return false;
	}
}
